import Layout from '@/layout'

const curriculumRouter = {
  path: '/curriculum',
  component: Layout,
  redirect: 'noRedirect',
  name: 'curriculum',
  meta: {
    title: '课程',
    icon: 'el-icon-date'
  },
  children: [
    {
      path: '/Website informaction',
      component: Layout,
      redirect: 'Configure/configure',
      name: 'website informaction',
      meta: { title: '课程管理', icon: 'el-icon-set-up' },
      children: [
        {
          path: 'configure',
          component: () => import('@/views/curriculum/configure'),
          name: 'Configure',
          meta: { title: '专业课程' }
        },
        {
          path: 'navigation',
          component: () => import('@/views/curriculum/navigation'),
          name: 'Navigation',
          meta: { title: '课程管理' }
        },
        {
          path: 'consult',
          component: () => import('@/views/curriculum/consult'),
          name: 'Consult',
          meta: { title: '推荐课程' }
        },
        {
          path: 'theme',
          component: () => import('@/views/informaction/theme'),
          name: 'Theme ',
          meta: { title: '推荐课程分类' }
        }
      ]
    },
    {
      path: 'line',
      component: () => import('@/views/charts/line'),
      name: 'LineChart',
      meta: { title: '评论管理', noCache: true }
    },
  ]
}

export default curriculumRouter
